/*******************************************************************************
 * Copyright 2011 Alexandre Zglav and Morphiastic
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.morphiastic.tests.entities.shape;

import java.util.ArrayList;
import java.util.Map;

import com.google.code.morphia.annotations.Entity;
import com.morphiastic.annotations.ElastiFieldEmbedded;
import com.morphiastic.annotations.ElastiMap;
import com.morphiastic.annotations.ElastiMorphed;

@Entity("shape")
@ElastiMorphed(typeName="circle")
public class Circle extends Ellipse{

	
	@ElastiMap
	private Map<String, String> testMap1;

	
	@ElastiMap(embeddedValueAnnotation=@ElastiFieldEmbedded)
	private Map<String, Triangle> testMapWithEmbedded;
	
	
	
	@ElastiMap(embeddedValueAnnotation=@ElastiFieldEmbedded)
	private Map<String, ArrayList<Triangle>> testMapWithArrayListOfEmbedded;
	
	
	
	
	@ElastiMap(embeddedValueAnnotation=@ElastiFieldEmbedded)
	private Map<String, Triangle[]> testMapWithArrayOfEmbedded;
	
	
	
	
	/**
	 * @return the testMap1
	 */
	public Map<String, String> getTestMap1() {
		return testMap1;
	}

	/**
	 * @param testMap1 the testMap1 to set
	 */
	public void setTestMap1(Map<String, String> testMap1) {
		this.testMap1 = testMap1;
	}

	/**
	 * @return the testMapWithEmbedded
	 */
	public Map<String, Triangle> getTestMapWithEmbedded() {
		return testMapWithEmbedded;
	}

	/**
	 * @param testMapWithEmbedded the testMapWithEmbedded to set
	 */
	public void setTestMapWithEmbedded(Map<String, Triangle> testMapWithEmbedded) {
		this.testMapWithEmbedded = testMapWithEmbedded;
	}

	/**
	 * @return the testMapWithArrayOfEmbedded
	 */
	public Map<String, ArrayList<Triangle>> getTestMapWithArrayListOfEmbedded() {
		return testMapWithArrayListOfEmbedded;
	}

	/**
	 * @param testMapWithArrayOfEmbedded the testMapWithArrayOfEmbedded to set
	 */
	public void setTestMapWithArrayListOfEmbedded(
			Map<String, ArrayList<Triangle>> testMapWithArrayListOfEmbedded) {
		this.testMapWithArrayListOfEmbedded = testMapWithArrayListOfEmbedded;
	}

	/**
	 * @return the testMapWithArrayOfEmbedded
	 */
	public Map<String, Triangle[]> getTestMapWithArrayOfEmbedded() {
		return testMapWithArrayOfEmbedded;
	}

	/**
	 * @param testMapWithArrayOfEmbedded the testMapWithArrayOfEmbedded to set
	 */
	public void setTestMapWithArrayOfEmbedded(
			Map<String, Triangle[]> testMapWithArrayOfEmbedded) {
		this.testMapWithArrayOfEmbedded = testMapWithArrayOfEmbedded;
	}
	
	
	
	
	
}
